//登录接口需要携带的数据类型
export interface loginFromData {
    username: string,
    password: string
}
//定义全部接口返回数据都拥有ts类型
export interface ResponseData{
    code:number,
    message:string,
    ok:boolean
}


//登录接口返回数据类型
export interface loginResponseData extends ResponseData{ 
   data:string

}

export interface userInfoReponseData extends ResponseData{
   data:{
    routes:string[],
    buttons:string[],
    roles:string[],
    name:string,
    avatar:string,
   } 
}